package com.xiaochong.tir.apiservice.service;

import com.xiaochong.tir.common.data.mapper.CurrencyInfoMapper;
import com.xiaochong.tir.common.data.vo.ApiAllEnableCurrencyInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author junhua
 * @date 2018/5/3 19:38
 */
@Service
public class CurrencyDiagnosisService {

    @Autowired
    private CurrencyInfoMapper currencyInfoMapper;


    /**
     * 获取所有启用的货币信息列表
     *
     * @return
     */
    public List<ApiAllEnableCurrencyInfoVo> getAllEnableCurrencyInfoList() {

        return currencyInfoMapper.getAllEnableCurrencyInfoList();

    }

    /**
     * 获取所有启用货币的cmcId
     *
     * @return
     */
    public List<String> getAllEnableCurrencyInfoCmcList() {
        return currencyInfoMapper.getAllEnableCurrencyInfoCmcList();
    }
}
